package com.zcckj.demo.order.service.impl;

import com.zcckj.common.mybatis.service.impl.BaseServiceImpl;
import com.zcckj.demo.order.dao.OrderMapper;
import com.zcckj.demo.order.model.dto.OrderDTO;
import com.zcckj.demo.order.model.entity.Order;
import com.zcckj.demo.order.service.OrderService;
import org.springframework.beans.BeanUtils;
import org.springframework.stereotype.Service;

/**
 *
 * <p>
 *  TODO 类作用描述
 * </p>
 *
 * @author zhangjie
 * @since 2019-08-27
 */
@Service
public class OrderServiceImpl extends BaseServiceImpl<OrderMapper,Order> implements OrderService {
    @Override
    public Boolean saveOrder(OrderDTO orderDTO) {
        Order order = new Order();
        BeanUtils.copyProperties(orderDTO,order);
        return save(order);
    }
}
